﻿using System;
using System.IO;
using System.Reflection;
using System.Linq;
using Microsoft.Office.PowerPoint.STAMP.TimedText;
using NUnit.Framework;


namespace Microsoft.Office.PowerPoint.STAMP.Test
{
    [TestFixture]
    public class TTMLUnitTest : TestBase
    {

        [Test]
        public void TestMethod2CustomClasses()
        {
            string filePath = AssemblyDirectory + @"\files\ttml1.2.xml";

            string c = System.IO.Path.GetFullPath(filePath);
            var result = System.IO.File.ReadAllText(c);

            var list = TimedTextCaptionParser.ParseTTML(result, TimeSpan.Zero, new TimeSpan(12, 0, 0));

            Assert.AreEqual(16, list.Count());
        }
    }
}
